package com.atguigu.edu.service;

import com.atguigu.edu.entity.frontvo.CourseFrontVo;
import com.atguigu.edu.entity.frontvo.CourseWebVo;
import com.atguigu.edu.entity.vo.CourseInfoVo;
import com.atguigu.edu.entity.vo.CoursePublishVo;
import com.atguigu.edu.entity.vo.CourseQuery;
import com.atguigu.edu.entity.Course;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author ld
 * @since 2022-08-16
 */
public interface CourseService extends IService<Course> {

    //添加课程基本信息
    String addCourseInfo(CourseInfoVo courseInfoVo);
    //通过课程id得到课程基本信息
    CourseInfoVo getCourseInfo(String courseId);
    //修改课程信息
    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo getCoursePublishInfo(String courseId);


    Page pageQuery(Integer page, Integer size, CourseQuery courseQuery);

    boolean removeCourse(String courseId);

    List<Course> getIndexCourse();

    Map<String, Object> getListByPage(Page<Course> pageInfo, CourseFrontVo courseFrontVo);

    CourseWebVo getCourseWebInfo(String courseId);
}
